/*
 * @Author: taoshiwei
 * @Date: 2019-04-09 14:39:32
 * @Last Modified by: taoshiwei
 * @Last Modified time: 2019-04-29 14:32:40
 *
 * 媒资管理
 */

import { createAPI } from '@/utils/request'

// 获取媒资列表
export const list = (params, data) => createAPI(`/media/m/media/list?pageNo=${params.pageNo}&pageSize=${params.pageSize}`, 'post', data)
// 媒资审核
export const audit = data => createAPI('/media/m/media/audit', 'put', data)

// 媒资预览
export const pervMedia = data => createAPI(`/media/m/media/preview/${data}`, 'get')

// export const add = data => createAPI('/companys', 'post', data)
// export const update = data => createAPI(`/companys/${data.id}`, 'put', data)
// export const remove = data => createAPI(`/companys/${data.id}`, 'delete', data)
// export const detail = data => createAPI(`/companys/${data.id}`, 'get', data)
// export const disabled = data =>
//   createAPI(`/companys/${data.id}/state`, 'post', data)
